home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-12-16 | 7.5 KB | 244 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: SLGConst.k
- // Release Version: $ ODF 3 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef SLGCONST_K
- #define SLGCONST_K
-
- //========================================================================================
- // Inks
- //========================================================================================
-
- enum FW_EStandardInks
- {
- FW_kNormalInk,
- FW_kNormalTextInk,
- FW_kInvertInk,
- FW_kWhiteEraseInk
- };
-
- //========================================================================================
- // Style dash kinds
- //========================================================================================
-
- enum FW_EStyleDash
- {
- FW_kSolidLine = 0x0000,
-
- FW_kDash = 0x0001,
- FW_kDot = 0x0002,
- FW_kDashDot = 0x0003,
- FW_kDashDotDot = 0x0004,
-
- FW_kOpaque = 0x0100,
-
- FW_kDashOpaque = FW_kDash + FW_kOpaque,
- FW_kDotOpaque = FW_kDot + FW_kOpaque,
- FW_kDashDotOpaque = FW_kDashDot + FW_kOpaque,
- FW_kDashDotDotOpaque = FW_kDashDotDot + FW_kOpaque
- };
-
- //========================================================================================
- // Styles
- //========================================================================================
-
- enum FW_EStandardStyles
- {
- FW_kNormalStyle,
- FW_kDashStyle,
- FW_kDotStyle,
- FW_kDashDotStyle,
- FW_kDashDotDotStyle
- };
-
- //========================================================================================
- // Fonts
- //========================================================================================
-
- enum FW_EStandardFonts
- {
- FW_kNormalFont,
- FW_kSystemFont,
- FW_kHelvetica12,
- FW_kTimes12,
- FW_kCourier12,
- FW_kPalatino12
- };
-
- //========================================================================================
- // Font Style
- //========================================================================================
-
- typedef unsigned short FW_FontStyle;
-
- const FW_FontStyle FW_kPlain = 0x0000;
- const FW_FontStyle FW_kBold = 0x0001;
- const FW_FontStyle FW_kItalic = 0x0002;
- const FW_FontStyle FW_kUnderline = 0x0004;
- const FW_FontStyle FW_kOutline = 0x0008;
- const FW_FontStyle FW_kShadow = 0x0010;
- const FW_FontStyle FW_kCondensed = 0x0020;
- const FW_FontStyle FW_kExtended = 0x0040;
- const FW_FontStyle FW_kStrikeOut = 0x0080;
-
- //========================================================================================
- // Transfer Modes
- //========================================================================================
-
- typedef unsigned long FW_TransferModes;
-
- const FW_TransferModes FW_kCopy = 0xFFFF0000;
- const FW_TransferModes FW_kNotCopy = 0xFFFF0001;
- const FW_TransferModes FW_kOr = 0xFFFF0002;
- const FW_TransferModes FW_kNotOr = 0xFFFF0003;
- const FW_TransferModes FW_kXOr = 0xFFFF0004;
- const FW_TransferModes FW_kNotXOr = 0xFFFF0005;
- const FW_TransferModes FW_kClear = 0xFFFF0006;
- const FW_TransferModes FW_kNotClear = 0xFFFF0007;
- const FW_TransferModes FW_kHilite = 0xFFFF0008;
- const FW_TransferModes FW_kErase = 0xFFFF0009; // 'Special' Transfer Mode
- const FW_TransferModes FW_kInvert = 0xFFFF000A; // 'Special' Transfer Mode
- const FW_TransferModes FW_kSystemHilite = 0xFFFF000B;
-
- const unsigned long FW_kPrivLastTransferMode = FW_kSystemHilite;
-
- //========================================================================================
- // Rendering Verbs
- //========================================================================================
-
- enum FW_ERenderVerbs
- {
- FW_kNoRendering,
- FW_kFrame,
- FW_kFill
- };
-
- //========================================================================================
- // Single-line Text Alignment Options
- //========================================================================================
-
- typedef unsigned short FW_TextAlignment;
-
- enum
- {
- // Horizontal alignment
- FW_kTextAlignLeft = 0x0000, // default
- FW_kTextAlignRight = 0x0001,
- FW_kTextAlignHCenter = 0x0002,
-
- FW_kPrivTextAlignHorzAlignMask = 0x000F,
-
- // Vertical alignment
- FW_kTextAlignTop = 0x0000, // default
- FW_kTextAlignBottom = 0x0010,
- FW_kTextAlignBaseLine = 0x0020,
- FW_kTextAlignVCenter = 0x0040,
-
- FW_kPrivTextAlignVertAlignMask = 0x00F0,
-
- // Position to use
- FW_kTextAlignUseSpecifiedPos = 0x0000, // default
- FW_kTextAlignUseCurrentPos = 0x0100,
-
- FW_kPrivTextAlignUsePosMask = 0x0F00
- };
-
- //========================================================================================
- // Text Box Alignment Options
- //========================================================================================
-
- typedef unsigned short FW_TextBoxOptions;
-
- enum
- {
- // Horizontal justification
- FW_kTextBoxJustifyLeft = 0x0000, // default
- FW_kTextBoxJustifyRight = 0x0001,
- FW_kTextBoxJustifyHCenter = 0x0002,
-
- FW_kPrivTextBoxHorzJusificationMask = 0x000F,
-
- // Vertical jusitification
- FW_kTextBoxJustifyTop = 0x0000, // default
- FW_kTextBoxJustifyBottom = 0x0010,
- FW_kTextBoxJustifyVCenter = 0x0020,
-
- FW_kPrivTextBoxVertJusificationMask = 0x00F0,
-
- // Should the text be clipped to the box? If not, make sure the box is large enough
- FW_kTextBoxNoClipToBox = 0x0000,
- FW_kTextBoxClipToBox = 0x0100, // default
-
- // The options below apply only if the following flag is not set
- FW_kTextBoxSingleLine = 0x0200,
-
- // Word wrapping and breaking options
- FW_kTextBoxWordWrap = 0x0400,
- FW_kTextBoxWordBreak = 0x0800
- };
-
- enum FW_Side
- {
- FW_kSideTop = 0x0001,
- FW_kSideBottom = 0x0002,
- FW_kSideLeft = 0x0004,
- FW_kSideRight = 0x0008
- };
-
- enum FW_Direction
- {
- FW_kDirNone = 0x0000,
- FW_kDirTopCenter = FW_kSideTop,
- FW_kDirTopRight = FW_kSideTop | FW_kSideRight,
- FW_kDirCenterRight = FW_kSideRight,
- FW_kDirBottomRight = FW_kSideBottom | FW_kSideRight,
- FW_kDirBottomCenter = FW_kSideBottom,
- FW_kDirBottomLeft = FW_kSideBottom | FW_kSideLeft,
- FW_kDirCenterLeft = FW_kSideLeft,
- FW_kDirTopLeft = FW_kSideTop | FW_kSideLeft
- };
-
- //========================================================================================
- // Icon drawing
- //========================================================================================
- // [HLX] I can't use <Icons.h> because of ODFrc
-
- enum FW_RenderIconAlignment
- {
- FW_kIconAlignNone = 0x0000,
- FW_kIconAlignVCenter = 0x0001,
- FW_kIconAlignTop = 0x0002,
- FW_kIconAlignBottom = 0x0003,
- FW_kIconAlignHCenter = 0x0004,
- FW_kIconAlignCenter = FW_kIconAlignHCenter,
- FW_kIconAlignAbsoluteCenter = FW_kIconAlignVCenter | FW_kIconAlignHCenter,
- FW_kIconAlignCenterTop = FW_kIconAlignTop | FW_kIconAlignHCenter,
- FW_kIconAlignCenterBottom = FW_kIconAlignBottom | FW_kIconAlignHCenter,
- FW_kIconAlignLeft = 0x0008,
- FW_kIconAlignCenterLeft = FW_kIconAlignVCenter | FW_kIconAlignLeft,
- FW_kIconAlignTopLeft = FW_kIconAlignTop | FW_kIconAlignLeft,
- FW_kIconAlignBottomLeft = FW_kIconAlignBottom | FW_kIconAlignLeft,
- FW_kIconAlignRight = 0x000C,
- FW_kIconAlignCenterRight = FW_kIconAlignVCenter | FW_kIconAlignRight,
- FW_kIconAlignTopRight = FW_kIconAlignTop | FW_kIconAlignRight,
- FW_kIconAlignBottomRight = FW_kIconAlignBottom | FW_kIconAlignRight
- };
-
- typedef unsigned short FW_RenderIconTransform;
-
- enum
- {
- FW_kIconTransformNone = 0x0000, // kTransformNone,
- FW_kIconTransformDisabled = 0x0001, // kTransformDisabled,
- FW_kIconTransformOffline = 0x0002, // kTransformOffline,
- FW_kIconTransformOpen = 0x0003, // kTransformOpen,
- FW_kIconTransformSelected = 0x4000 // kTransformSelected
- };
-
- #endif // SLGCONST_H
-